package router

import (
	"MxShopApi/api"
	"github.com/gin-gonic/gin"
	"go.uber.org/zap"
)

func InitRouter(Router *gin.RouterGroup) {
	//配置路由组
	PayRouter := Router.Group("ali")
	//zapLogger打印输出当前调用的接口
	zap.S().Info("配置支付")
	{
		PayRouter.GET("pay", api.OrderPay)       //支付
		PayRouter.GET("refund", api.OrderRefund) //退款
		PayRouter.POST("notify", api.Notify)     //支付回调
	}

}
